package com.skhu.as.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.skhu.as.domain.Requester;

public class RequesterM implements RowMapper {

	@Override
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		
		Requester requester = new Requester();
		
		requester.setRequesterNo(rs.getInt("requester_no"));
		requester.setName(rs.getString("name"));
		requester.setContactNumber(rs.getString("contact_number"));
		requester.setRequestPlace(rs.getString("request_place"));
		requester.setDepartment(rs.getString("department"));
		
		return requester;
	}
	
}
